﻿using System;
using System.Collections.Generic;

namespace AspireFyh.ApiService.Entities;

public partial class Account
{
    public long Id { get; set; }

    public DateTime CreateAt { get; set; }

    public DateTime ModifyAt { get; set; }

    public string? Email { get; set; }

    /// <summary>
    /// 是否过期
    /// </summary>
    public DateTime? Expired { get; set; }

    /// <summary>
    /// 是否禁用
    /// </summary>
    public ulong? IsEnabled { get; set; }

    /// <summary>
    /// 是否锁定
    /// </summary>
    public ulong? IsLocked { get; set; }

    public string? Password { get; set; }

    public string? Phone { get; set; }

    public string? Username { get; set; }

    public long? OrganizationId { get; set; }

    public ulong FirstLogin { get; set; }

    public virtual ICollection<AccountRole> AccountRoles { get; set; } = new List<AccountRole>();

    public virtual Organization? Organization { get; set; }

    public virtual ICollection<Role> Roles { get; set; } = new List<Role>();
}
